import mongoose from "mongoose";
const announcementDataSchema = new mongoose.Schema(
  {
    sort: { type: Number, default: 0 }, // 用来排序
    text: { type: String, required: true }, // 公告内容
  },
  { collection: "AnnouncementData" }
);

const AnnouncementData = mongoose.model(
  "AnnouncementData",
  announcementDataSchema
);

export default AnnouncementData;
